home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 41 / PC Gamer IT CD 41 2-2.iso / utility / CISEI / 8BIT / CSEI.DXR / 00043_TastiDOWN-UP.ls < prev    next >
Encoding:
Text File  |  1998-10-06  |  1.6 KB  |  60 lines

  1. property NumCanale, nonpremuto, premuto, evidente, CursorUP, CursorDOWN
  2.  
  3. on birth me, c, np, pr, ev, cu, cd
  4.   set the NumCanale of me to c
  5.   set the nonpremuto of me to np
  6.   set the premuto of me to pr
  7.   set the evidente of me to ev
  8.   set the CursorUP of me to cu
  9.   set the CursorDOWN of me to cd
  10.   return me
  11. end
  12.  
  13. on abbassa me
  14.   global NumTasto, LastNumTasto
  15.   set LastNumTasto to NumTasto
  16.   set the cursor of sprite the NumCanale of me to the CursorDOWN of me
  17.   set the puppet of sprite the NumCanale of me to 1
  18.   set the member of sprite the NumCanale of me to member the premuto of me
  19.   updateStage()
  20. end
  21.  
  22. on alza me
  23.   global NumTasto, LastNumTasto
  24.   set the puppet of sprite the NumCanale of me to 0
  25.   updateStage()
  26.   if NumTasto = LastNumTasto then
  27.     set the cursor of sprite the NumCanale of me to the CursorUP of me
  28.     tastimain()
  29.     exit
  30.   end if
  31.   set LastNumTasto to 0
  32. end
  33.  
  34. on evidenzia me
  35.   global NumTasto, LastEvidente, f1, f2
  36.   set the cursor of sprite the NumCanale of me to the CursorUP of me
  37.   set the puppet of sprite the NumCanale of me to 1
  38.   set the member of sprite the NumCanale of me to member the evidente of me
  39.   set LastEvidente to NumTasto
  40.   if f2 <> 0 then
  41.     set a to "Com" & NumTasto
  42.     put field a into field "ComTot"
  43.     set f2 to 0
  44.     set f1 to 1
  45.   end if
  46.   updateStage()
  47. end
  48.  
  49. on disevidenzia me
  50.   global f2, f1
  51.   set the puppet of sprite the NumCanale of me to 0
  52.   set the cursor of sprite the NumCanale of me to 0
  53.   if f1 <> 0 then
  54.     put "Muoviti con il mouse sopra una scritta per evidenziare l'argomento..." into field "Comtot"
  55.     set f2 to 1
  56.     set f1 to 0
  57.   end if
  58.   updateStage()
  59. end
  60.